<?php
/**
 *
 * @author Mr.UBKey
 * @package XPHP
 * @version Beta
 * @copyright XWEB
 */
abstract class XPHP_View_Result_Abstract implements XPHP_View_Result_Interface
{
	/** 
	 * Layout
	 * @var XPHP_Layout
	 */
	protected $_layout;
		
	/**
 	 * View
	 * @var XPHP_View
	 */
	protected $_view;
	
	/**
	 * Model hệ thống
	 */
	protected $_model;
	
	/**
	 * Lớp hỗ trợ view
	 * @var XPHP_View_Helper
	 */
	protected $_helper;
	
	/**
	 * Phương thức khởi tạo
	 */
	public function __construct()
	{
	}
	
	public function getModel()
	{
		if(!empty($this->_model))
			return $this->_model;
	}
	
	public function setModel($model)
	{
		$this->_model = $model;
	}
	
	public function setView(XPHP_View $view)
	{
		$this->_view = $view;
	}
	
	public function getView()
	{
		return $this->_view;
	}
	
	public function setLayout($layout)
	{
		$this->_layout = $layout;
	}
	
	public function getLayout()
	{
		return $this->_layout;
	}
	
	public function setHelper($helper)
	{
		$this->_helper = $helper;
	}
	
	public function getHelper()
	{
		return $this->_helper;
	}
}